<!DOCTYPE HTML>
<html xmlns:wb="http://open.weibo.com/wb">
	<head>
		<script id="allmobilize" charset="utf-8" src="style/js/allmobilize.min.js"></script>
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<link rel="alternate" media="handheld" />
		<!-- end 云适配 -->
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>职位详情</title>
		<meta property="qc:admins" content="23635710066417756375" />
		<meta name="baidu-site-verification" content="QIQ6KC1oZ6" />

		<!-- <div class="web_root"  style="display:none">h</div> -->
		<script type="text/javascript">
			var ctx = "h";
			console.log(1);
		</script>
		<link rel="Shortcut Icon" href="h/images/favicon.ico">
		<link rel="stylesheet" type="text/css" href="style/css/style.css" />
		<link rel="stylesheet" type="text/css" href="style/css/external.min.css" />
		<link rel="stylesheet" type="text/css" href="style/css/popup.css" />
		<script src="style/js/jquery.1.10.1.min.js" type="text/javascript"></script>
		<script type="text/javascript" src="style/js/jquery.lib.min.js"></script>
		<script src="style/js/ajaxfileupload.js" type="text/javascript"></script>
		<script src="style/js/jquery-hbzx.js" type="text/javascript"></script>
		<script src="style/js/template-web.js" type="text/javascript"></script>
		<script src="style/js/getUrlParam.js" type="text/javascript"></script>
		<script src="style/js/neturl.js" type="text/javascript"></script>

		<!--[if lte IE 8]>
    <script type="text/javascript" src="style/js/excanvas.js"></script>
<![endif]-->
		<script type="text/javascript">
			var youdao_conv_id = 271546;
		</script>
		<script type="text/javascript" src="style/js/conv.js"></script>
	</head>
	<body>
		<div id="body">
			<div id="header">
				<div class="wrapper">
					<a href="index.html" class="logo">
						<img src="style/images/logo.png" width="200" height="50" alt="东莞大学生兼职网站企业端" />
					</a>
					<ul id="navheader" class="reset">
						<li><a href="index.html">首页</a></li>
						<li><a href="myhome.html">我的公司</a></li>
						<li class="current"><a href="mList.html">我的职位</a></li>
						<li><a rel="nofollow" href="canInterviewResumes.html">应聘我的</a></li>
						<li><a rel="nofollow" href="create.html">发布职位</a></li>
					</ul>
					<dl class="collapsible_menu">
						<dt>

							<span><span id="uname"></span>&nbsp;</span>
							<span class="red dn" id="noticeDot-1"></span>
							<i></i>
						</dt>
						<dd><a href="mList.html">我发布的职位</a></dd>
						<dd><a href="canInterviewResumes.html">我收到的简历</a></dd>
						<dd class="btm"><a href="myhome.html">我的公司主页</a></dd>
						<dd class="logout" id="logout"><a rel="nofollow">退出</a></dd>
					</dl>
				</div>
			</div><!-- end #header -->
			<div id="container">
				<div class="clearfix">
					<div class="content_l">
						<dl class="job_detail">
							<dt>
								<h1>
									<em></em>
									<div id="cname_job" style="font-size: 18px;"></div>
									<div id="title" style="font-size: 20px;"></div>
								</h1>

							</dt>
							<dd class="job_request">
								<span class="red" id="money">4k-6k</span>
								<span id="address" style="font-size: 16px;">武汉</span>
								<span id="education" style="font-size: 16px;"> 本科及以上</span>
								<span id="employNum" style="font-size: 16px;"> 招聘人数</span>
								<span id="professionName" style="font-size: 16px;">行业</span><br />
								<div id="worktime" style="font-size: 16px;">工作时间</div>
								<div id="createTime" style="font-size: 16px;">发布时间：3天前发布</div>
							</dd>
							<dd class="job_bt">
								<h3 class="description">职位描述</h3>
								<p>&nbsp;岗位职责： <br />
									<div id="jobDescribe"></div>
								</p>
								<p>&nbsp;岗位要求： <br />
									<div id="jobRequire"></div>
								</p>
							</dd>
						</dl>
						<div id="weibolist"></div>
					</div>
					<div class="content_r">
						<dl class="job_company">
							<dt>
								<a href="h/c/683.html" target="_blank">
									<img class="b2" src="style/images/ff80808140ac5ed90140b953972e0215.png" width="80" height="80" alt="" />
									<div>
										<h2 class="fl">
											<p id="company_name">立方网</p>
										</h2>
									</div>
								</a>
							</dt>
							<dd>
								<ul class="c_feature reset">
									<li><span>领域</span>
										<div id="profession">移动互联网,游戏</div>
									</li>
									<li><span>规模</span>
										<div id="scale"></div>
									</li>
									<li>
										<span>主页</span>
										<a href="http://L99.com" target="_blank" title="http://L99.com" rel="nofollow" id="chttp">http://L99.com</a>
									</li>
								</ul>

								<h4>负责人员</h4>
								<ul class="c_feature reset">
									<li><span id="contact">负责人员</span></li>
									<li><span id="phone">联系方式</span></li>
									<li><span id="email">邮箱地址</span></li>
								</ul>

								<h4>工作地址</h4>
								<div id="work_address"></div>
								<div id="smallmap"></div>
							</dd>
						</dl>
					</div>
				</div>
				<input type="hidden" value="" name="userid" id="userid" />
				<input type="hidden" value="" name="type" id="resend_type" />
				<input type="hidden" value="140204" id="jobid" />
				<input type="hidden" value="683" id="companyid" />
				<input type="hidden" value="" id="positionLng" />
				<input type="hidden" value="" id="positionLat" />

				<div id="loginToolBar">
					<div>
						<em></em>
						<span class="companycount"></span>
						<span class="positioncount"></span>
						<div class="right">
						</div>
						<input type="hidden" id="cc" value="16064" />
						<input type="hidden" id="cp" value="96931" />
					</div>
				</div>

				<div id="footer">
					<div class="wrapper">
						<a href="h/about.html" target="_blank" rel="nofollow">联系我们</a>
						<a href="h/af/zhaopin.html" target="_blank">互联网公司导航</a>
						<a href="http://e.weibo.com/lagou720" target="_blank" rel="nofollow">我们的微博</a>
						<a class="footer_qr" href="javascript:void(0)" rel="nofollow">我们的微信<i></i></a>
						<div class="copyright">&copy;2019-2020 qiuxinxin <a href="http://www.baidu.com"
							 target="_blank">东莞理工学院城市学院备14023790号-2</a></div>
					</div>
				</div>

				<script type="text/javascript" src="style/js/core.min.js"></script>
				<script type="text/javascript" src="style/js/popup.min.js"></script>

				<script type="text/javascript" src="style/js/job_detail.js"></script>
				<script type="text/javascript" src="style/js/count.js"></script>
				<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=3d6a9f4b807441569414b01eecc20959"></script>
				<script>
					var company_id = "";
					var job_id = '';
					var workPlaces = '';
					$(document).ready(function() {
						company_id = getCookie('company_id');
						if (company_id == '') {
							window.location.href = "login.html";
						}
						var uname = getCookie('uname');
						$('#uname').text(uname);
						job_id = UrlParm.parm("job_id");
						get_company();
						get_jobdetail_info();
					});
					//存cookie
					function setCookie(name, value) {
						var Days = 30;
						var exp = new Date();
						exp.setTime(exp.getTime() + Days * 24 * 60 * 60 * 1000);
						document.cookie = name + "=" + escape(value) + ";expires=" + exp.toGMTString();
					}
					$("#logout").click(function() {
						console.log("退出")
						setCookie('company_id', '')
						setCookie('cname', '')
						setCookie('cemail', '')
						window.location.href = "login.html";
					});

					function get_company() {
						$.ajax({ //传数据的方式
							url: ip_address + "/companys/info?id=" + company_id,
							type: "post",
							success: function(result, request) { //传数据成功之后的操作   result是servlet传过来的数据  这个函数对result进行处理，让它显示在 输入框中
								console.log('返回了' + JSON.stringify(result))
								var status = result.status;
								if (status == 0) {
									var data = result.data;
									var cname = data.cname;
									var scale = data.scale;
									var chttp = data.chttp;
									var email = data.email;
									var phone = data.phone;
									var profession = "";
									var professions = data.profession;
									for (var i in professions) {
										if (i == professions.length - 1) {
											profession = profession + professions[i].name
										} else {
											profession = profession + professions[i].name + "、"
										}
									}
									$('#company_name').text(cname);
									$('#profession').text(profession);
									$('#scale').text(scale + "人");
									$('#chttp').text(chttp);
									$("#chttp").attr("href", chttp);
									$("#email").text("邮箱地址：" + email);
									$("#phone").text("联系方式：" + phone);
								} else {
									var msg = result.msg;
									alert(msg);
								}
							},
							error: function(Error) {
								console.log(Error);
							},
							complete: function(xhr, data) {
								console.log("complete");
							}
						});
					}

					function get_jobdetail_info() {
						$.ajax({ //传数据的方式
							url: ip_address + "/job/info?id=" + job_id,
							type: "post",
							success: function(result, request) { //传数据成功之后的操作   result是servlet传过来的数据  这个函数对result进行处理，让它显示在 输入框中
								console.log('返回了' + JSON.stringify(result))
								var status = result.status;
								if (status == 0) {
									var data = result.data;
									var createTime = data.createTime;
									var cname = data.cname;
									var phone = data.phone;
									var professionName = data.professionName;
									var title = data.title;
									var maxMoney = data.maxMoney;
									var minMoney = data.minMoney;
									var workPlace = data.workPlace;
									var jobRequire = data.jobRequire;
									var jobDescribe = data.jobDescribe;
									var contact = data.contact;
									var education = data.education;
									var employNum = data.employNum;
									var email = data.email;
									var startTime = data.startTime;
									var endTime = data.endTime;
									if (startTime != "" && startTime != null) {
										startTime = startTime.replace(" 00:00:00", "");
									}
									if (endTime != "" && endTime != null) {
										endTime = endTime.replace(" 00:00:00", "");
									}
									jobRequire = jobRequire.replace(/\n/g, "<br/>");
									jobDescribe = jobDescribe.replace(/\n/g, "</br>");
									var htmljobDescribe = "";
									htmljobDescribe += jobDescribe;
									$("#jobDescribe").append(htmljobDescribe);
									var htmljobRequire = "";
									htmljobRequire += jobRequire;
									$("#jobRequire").append(htmljobRequire);
									$('#worktime').text("工作日期：" + startTime + ' 至 ' + endTime);
									$('#cname_job').text(cname)
									$('#title').text(title)
									$('#money').text('￥' + minMoney + ' - ￥' + maxMoney)
									$('#address').text(workPlace)
									workPlaces = workPlace;
									$('#education').text(education)
									$('#professionName').text(professionName)
									$('#employNum').text("招聘" + employNum + "人")
									$('#createTime').text("发布时间：" + createTime)
									$('#work_address').text("工作地点：" + workPlace)
									$("#contact").text("负责人员：" + contact);
									//百度地图API功能
									var sMap = new BMap.Map("smallmap");
									sMap.enableScrollWheelZoom(true);
									
									if ($('#positionLat').val() && $('#positionLng').val()) {
										var sPoint = new BMap.Point($('#positionLng').val(), $('#positionLat').val());
										sMap.centerAndZoom(sPoint, 12);
										sMap.addOverlay(new BMap.Marker(sPoint)); // 将标注添加到地图中
									
									} else {
										// 创建地址解析器实例
										var sMyGeo = new BMap.Geocoder();
										// 将地址解析结果显示在地图上,并调整地图视野
										sMyGeo.getPoint(workPlace, function(sPoint) {
											if (sPoint) {
												sMap.centerAndZoom(sPoint, 16);
												sMap.addOverlay(new BMap.Marker(sPoint));
											}
										}, workPlace);
									}
								} else {
									var msg = result.msg;
									alert(msg);
								}
							},
							error: function(Error) {
								console.log(Error);
							},
							complete: function(xhr, data) {
								console.log("complete");
							}
						});
					}

					function getCookie(name) {
						var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
						if (arr = document.cookie.match(reg))
							return unescape(arr[2]);
						else
							return null;
					}
					$(function() {
						$('#weibolist .cookietxte').text('推荐本职位给好友');
						$(document).bind('cbox_complete', function() {
							hbzxJQ("#gaosutapt .pttui a").trigger("click");
							hbzxJQ("#mepingpt .pttui a").trigger("click");
						});
						$('#cboxOverlay').bind('click', function() {
							top.location.reload();
						});
						$('#colorbox').on('click', '#cboxClose', function() {
							if ($(this).siblings('#cboxLoadedContent').children('div').attr('id') == 'deliverResumesSuccess' || $(
									this).siblings('#cboxLoadedContent').children('div').attr('id') == 'uploadFileSuccess') {
								top.location.reload();
							}
						});
					})
				</script>

	</body>
</html>
